﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OpenSSL.Crypto;

namespace Sicurezza.Client.Controlli
{
    public partial class ChooseKeyLenght : Form
    {
        public int KeyLenght{ get; set; }

        public ChooseKeyLenght()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (radio1024.Checked)
                KeyLenght = 1024;

            if (radio4096.Checked)
                KeyLenght = 4096;

            if (radio1536.Checked)
                KeyLenght = 1536;

            if (radio2048.Checked)
                KeyLenght = 2048;

            DialogResult = DialogResult.OK;
            Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }
    }
}
